import { Middleware } from '@midwayjs/decorator';
import { NextFunction, Context } from '@midwayjs/koa';
import { IMiddleware } from '@midwayjs/core';

/**
 * 微信支付中间件
 */
@Middleware()
export class WxPayMiddleware implements IMiddleware<Context, NextFunction> {
  resolve() {
    return async (ctx: Context, next: NextFunction) => {
      // console.log('???????????????', ctx);

      await next();
    };
  }
}
